package com.icehand.springdocker.demo.convert;

import org.springframework.stereotype.Component;

@Component
public class UserTransform {
    public String boolean2String(Boolean value) {
        return value ? "男" : "女";
    }

    public boolean string2Boolean(String str) {
        return "男".equals(str);
    }
}
